import java.util.Arrays;

public class Test {
    public static void main(String[] args) {
            int[] array = {10,50,30};
            Arrays.sort(array);
        System.out.println(Arrays.toString(array));
        int ret=Arrays.binarySearch(array,30);
        System.out.println(ret);
        }

}
